<?php
/*
 * Copyright 2013 by Jerrick Hoang, Ivy Xing, Sam Roberts, James Cook, 
 * Johnny Coster, Judy Yang, Jackson Moniaga, Oliver Radwan, 
 * Maxwell Palmer, Nolan McNair, Taylor Talmage, and Allen Tucker. 
 * This program is part of RMH Homebase, which is free software.  It comes with 
 * absolutely no warranty. You can redistribute and/or modify it under the terms 
 * of the GNU General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 */

/**
 * MasterScheduleEntry domain class for Forestdale.
 * @version 4/1/2014
 */

class MasterScheduleEntry {
        private $schedule_type;
        private $day;         // "Mon", "Tue", ... "Sun"
        private $week_no;          // week of month (1st-5th) for "monthly" or "weekly" Sat or Sun // week of year (odd or even) for "weekly" Mon-Fri
        private $start_time;    // start time for the shift
        private $end_time;      // end time for the shift
        private $clinicianID; // the id of the associated clinician
        private $notes;   // notes to be displayed for this shift on the schedule
        private $id;      // unique id
  
	/**
	* constructor for all MasterScheduleEntries
	*/
	function __construct($type, $day, $week_no, $start_time, $end_time, $clinID , $notes, $id){
		$this->schedule_type = $type;
		$this->day = $day;
		$this->week_no = $week_no;
		$this->start_time = $start_time;
		$this->end_time = $end_time;
                $this->clinicianID = $clinID;
		$this->notes = $notes;
                $this->id = $id;
	}
	
	/**
	*  getter functions
	*/
        function get_schedule_type(){
                return $this->schedule_type;
        }
	function get_day(){
		return $this->day;
	}
	function get_week_no(){
		return $this->week_no;
	}
	function get_start_time(){ 
		return $this->start_time;
	}
	function get_end_time(){
		return $this->end_time;
	}
        function get_time(){
		return ($this->start_time . "-" . $this->end_time);
	}
        function get_clinician_ID(){
                return $this->clinicianID;
        }
	function get_notes(){
		return $this->notes; 
	}
	function get_id(){
		return $this->id;
	}
        
        /**
	*  setter functions
	*/
        function set_schedule_type($schedule_type){
                $this->schedule_type = $schedule_type;
        }
        function set_day($day){
		$this->day = $day; 
	}
        function set_start_time($start_time){
		$this->start_time = $start_time; 
	}  
	function set_week_no($week_no){
		$this->week_no = $week_no; 
	}
        function set_end_time($end_time){
		$this->end_time = $end_time; 
	}
        function set_clinicianID($clinicianID){
		$this->clinicianID = $clinicianID; 
	}
        function set_notes($notes){
		$this->notes = $notes; 
	}
        function set_id($id){
		$this->id = $id; 
	}
}
?>